//
//  HTConfig.swift
//  MagaCore
//
//  Created by MrMessy on 2023/5/26.
//

import SwiftUI
import Foundation
import SwiftyStoreKit
import StoreKit

struct HTConfig {
    static let STATIC_AppID: String = "93"
    static let STATIC_baseUrl: String = "http://www.devapitest.top"// 网络请求地址
    static let STATIC_buriedUrl: String = "http://www.devapitest.top"// 埋点网络请求地址
    static let STATIC_queriesUrl: String = "https://suggestqueries.google.com"// google关键词查询地址
    static let STATIC_subscribeProductIds: Set<String> = ["week", "month", "year"]// apple订阅产品ID
    static let STATIC_subscribeAscOrder: [String] = ["week", "month", "year"]// apple订阅产品升序排列
    static let STATIC_subscribeDescOrder: [String] = ["year", "month", "week"]// apple订阅产品降序排列
    static let STATIC_subscribeSecret: String = "27b047287f114cf8a1f30b7856625527"// apple订阅Secret
    static let STATIC_interstitialId: String = "826994ed93f53fc3"// 插屏广告id
    static let STATIC_bannerId: String = "1e2691d6415e622b"// banner广告id
    static let STATIC_MRECId: String = "004fdfc5b21ecfd5"// MREC广告id
    static let STATIC_rewardedId: String = "3f20bfc3ee236866"// 激励广告id
    static let STATIC_subscribeService: AppleReceiptValidator.VerifyReceiptURLType = .sandbox// 订阅环境

    // UserDefaults Key
    static let STATIC_userDefaults_firstInstall = "string_firstInstall"
    static let STATIC_userDefaults_deviceToken = "string_deviceToken"
    static let STATIC_userDefaults_fcmToken = "string_fcmToken"
    static let STATIC_userDefaults_isVest = "string_isVest"
    static let STATIC_userDefaults_firstOpen = "string_firstOpen"
    static let STATIC_userDefaults_agreeNotice = "string_agreeNotice"
    static let STATIC_userDefaults_userExpiredDate = "string_userExpiredDate"
    static let STATIC_userDefaults_isShowSubtitle = "string_isShowSubtitle"
    static let STATIC_userDefaults_subtitleLang = "string_subtitleLang"

    // Notification Name
    static let STATIC_notification_updateInterfaceOrientations = Notification.Name("string_updateInterfaceOrientations")
    static let STATIC_notification_interstitialAd = Notification.Name("string_interstitialAd")
    static let STATIC_notification_rewardedAd = Notification.Name("string_rewardedAd")
    static let STATIC_notification_addNewRecentPlay = Notification.Name("string_addNewRecentPlay")
    static let STATIC_notification_showEpisodesPopupView = Notification.Name("string_showEpisodesPopupView")
    static let STATIC_notification_sceneActive = Notification.Name("string_sceneActive")
    static let STATIC_notification_colorScheme = Notification.Name("string_colorScheme")
}
